<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <script language="javascript" type="text/javascript">
    function del(id){
    	if(!confirm("您确定删除该模块")){
	     	return false;
		}else{
			window.location.href="${base}/admin/adminmenudel.jhtml?menuid=" + id;
		}
	}
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="STYLESHEET" type="text/css" href="${base}/res/admin/css/tab.css"/>
	<link rel="StyleSheet" href="${base}/res/comm/css/ctrl/tabletree4j.css" type="text/css" />
	<script type="text/javascript" src="${base}/res/comm/js/ctrl/TableTree4J.js"></script>
<script type="text/javascript">
	var gridTree="";	
	function showGridRoleTree(){
		gridTree=new TableTree4J("gridTree","../../");	
		gridTree.setImgRootPath("${base}/res/comm/js/ctrl/img/");
		gridTree.tableDesc="<table width=\"99%\" class=\"GridView\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CECECE\">";	
		var headerDataList=new Array("模块名","描述","链接地址","顺序","类型","操作");
		var widthList=new Array("20%","25%","25%","10%","10%","10%");
		gridTree.setHeader(headerDataList,-1,widthList,true,"GridHead","","","","");				
		gridTree.gridHeaderColStyleArray=new Array("","","","","centerClo");
		gridTree.gridDataCloStyleArray=new Array("","","","","centerClo");	
		var dataList=new Array('','','','','','');
		//gridTree.addGirdNode(dataList,-2,1,null,0);
		<#list adminMenuList as list>
			dataList=new Array('${list.menuname}',
			'${list.descs?default("&nbsp;")}',
			'${list.linkaddr?default("&nbsp;")}','${list.ord}','<#if list.menutype?int==1>可见<#elseif list.menutype?int==2><font color=\"red\">隐藏</font><#else>&nbsp;</#if>',
			'<a href="${base}/admin/adminmenuinput.jhtml?menuid=${list.menuid}">编辑</a>&nbsp;&nbsp;<a href="#" onclick="del(${list.menuid})">删除</a>');
			gridTree.addGirdNode(dataList,${list.menuid},<#if list.pmenuid == 0>-1<#else>${list.pmenuid}</#if>,null,${list.ord});
			//alert(dataList);
		</#list>		
        gridTree.printTableTreeToElement("gridTreeDiv");	
			
}
</script>

	
	
  </head>
  
  <body style="overflow:auto;">
  

	
	
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
	    <td height="30">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="15" height="30"><img src="${base}/res/admin/images/tab_03.gif" width="15" height="30" /></td>
	        <td background="${base}/res/admin/images/tab_05.gif">
	       		<table width="100%">
	       			<tr><td><img src="${base}/res/admin/images/311.gif" width="16" height="16" /> <span class="STYLE4" style="16">模块管理列表</span></td><td align="right"><a href="${base}/admin/adminmenuinput.jhtml">增加模块</a></td></tr>
	       		</table> 
	        </td>
	        <td width="14"><img src="${base}/res/admin/images/tab_07.gif" width="14" height="30" /></td>
	      </tr>
	    </table>
	    </td>
	  </tr>
	   <tr>
	    <td>
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	    	<td width="9" background="${base}/res/admin/images/tab_12.gif">&nbsp;</td>
	        <td bgcolor="#e5f1d6">
	    		<div align="right" width="95%">
			
				</div>
		
				<div id="gridTreeDiv">

				</div>
			</td>
		 	<td width="9" background="${base}/res/admin/images/tab_16.gif">&nbsp;</td>
	   
   		</tr>
   	
   		</table>
   		</td>
   		
  </tr>
  <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="${base}/res/admin/images/tab_20.gif" width="15" height="29" /></td>
        <td background="${base}/res/admin/images/tab_21.gif">&nbsp;</td>
        <td width="14"><img src="${base}/res/admin/images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>	
		
<script type="text/javascript">
	showGridRoleTree()
	gridTree.openAllNodes()
</script>


  </body>
</html>